package com.zerdoor.service;

import java.util.List;
import java.util.Map;

/**
 * 任务签约 业务层
 *
 * Created by zhongjieyu on 2014/12/30.
 */
public interface ITaskSigningService {


    /**
     * 根据项目ID查询任务合同名
     * @param itemId
     * @return
     * @throws Exception
     */
    List<Map<String,String>> findContractNameByItemId(int itemId,int user_id,int type) throws Exception;


    /**
     * 根据合同ID查询合同数据
     * @param contractId
     * @return
     * @throws Exception
     */
    Map<String,Object> findContractByContractId(int contractId) throws Exception;


    /**
     * 根据合同ID修改合同信息
     * @param param
     * @throws Exception
     */
    void updateContractByContractId(Map<String, String> param) throws Exception;

    /**
     * 委托方确认合同
     * @param contractId
     * @throws Exception
     */
    void updateBaileSureContractByContractId(int contractId) throws Exception;

    /**
     * 艺术家确认合同
     * @param contractId
     * @throws Exception
     */
    void updateArtistSureContractByContractId(int contractId) throws Exception;

}
